// 图标选择器组件样式

.icon-selector-button {
  min-width: 180px;
  text-align: left;
  justify-content: flex-start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-selector-modal .icon-selector-content {
  max-height: 400px;
  overflow-y: auto;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 12px;
  padding: 8px;
}

.icon-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 20px;

  &:hover {
    border-color: var(--primary-color, #177ddc);
    background-color: #f0f7ff;
    transform: translateY(-2px);
  }

  &.selected {
    border-color: var(--primary-color, #177ddc);
    background-color: #e6f7ff;
    box-shadow: 0 0 0 2px rgba(23, 125, 220, 0.2);
  }
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #999;
}

.no-result {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: #999;
  flex-direction: column;

  .anticon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
  }
}